package com.cskaoyan.bean.yangzihui;

import lombok.Data;

import java.util.List;

/**
 * @author yangzihui
 * @Description
 * @Create 2022-06-26 16:08
 * @Version
 */
@Data
public class CouponUserData {
    private Integer total;
    private Integer pages;
    private Integer limit;
    private Integer page;
    private List<CouponUser> list;

    public static CouponUserData data(long total,Integer pages,Integer limit,Integer page,List list){
        CouponUserData couponUserData = new CouponUserData();
        couponUserData.setTotal((int) total);
        couponUserData.setPages(pages);
        couponUserData.setPage(page);
        couponUserData.setLimit(limit);
        couponUserData.setList(list);
        return couponUserData;
    }
}
